<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			window.onload=function(){
				var h=document.getElementById("title");
				//alert(h.className);
				//h.className='qqqqqqqqqqqqqqqqqq';
				//获得任意属性值
				//var re=h.getAttribute('hd');
				//alert(re);
				//设置任意属性值
				var re=h.setAttribute('class','wwwwwwwwwwwwwwww');
				
			}
		</script>
	</head>
	<body>
		<h1 id='title' class='hs' name='minzi' hd='houdun'>后盾人人人做后盾</h1>
	</body>
</html>
